package com.yaorange.certificate.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yaorange.common.annotation.Excel;
import com.yaorange.common.core.domain.BaseEntity;

/**
 * 合格证打印数据对象 njt_certificate
 *
 * @author coach tam
 * @date 2024-07-17
 */
public class NjtCertificate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户注册表ID */
    @Excel(name = "用户注册表ID")
    private Long userId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品重量 */
    @Excel(name = "产品重量")
    private BigDecimal productWeight;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 产地 */
    @Excel(name = "产地")
    private String produceAddress;

    /** 合格方式 */
    @Excel(name = "合格方式")
    private String testType;

    /** 检验机构 */
    @Excel(name = "检验机构")
    private String testBy;

    /** 检测报告 */
    @Excel(name = "检测报告")
    private String testReport;

    /** 用户签名 */
    @Excel(name = "用户签名")
    private String userSignature;

    /** 合格证编号 */
    @Excel(name = "合格证编号")
    private String code;

    /** 二维码地址 */
    @Excel(name = "二维码地址")
    private String qrcode;

    /** 打印次数 */
    @Excel(name = "打印次数")
    private Integer printNumber;

    /** 合格证类型 */
    @Excel(name = "合格证类型")
    private String qrType;

    /** 该合格证信息是否需要同步到成都市
     0-无需同步
    1-需要同步
    2-已同步 */
    @Excel(name = "该合格证信息是否需要同步到成都市 0-无需同步 1-需要同步 2-已同步")
    private Integer isSync;

    /** 省平台追溯码 */
    @Excel(name = "省平台追溯码")
    private String traceCode;

    /** 省平台批次类型 0-农事活动，1-生产加工，默认0 */
    @Excel(name = "省平台批次类型 0-农事活动，1-生产加工，默认0")
    private String batchType;

    /** 打印机序列号 */
    @Excel(name = "打印机序列号")
    private String serialCode;

    /** 二维码被扫次数 */
    @Excel(name = "二维码被扫次数")
    private Integer scanNum;

    /** 数据来源 */
    @Excel(name = "数据来源")
    private Integer sourceType;

    /** 删除标记（1-删除,0-正常 ） */
    private Integer delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setProductWeight(BigDecimal productWeight)
    {
        this.productWeight = productWeight;
    }

    public BigDecimal getProductWeight()
    {
        return productWeight;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setProduceAddress(String produceAddress)
    {
        this.produceAddress = produceAddress;
    }

    public String getProduceAddress()
    {
        return produceAddress;
    }
    public void setTestType(String testType)
    {
        this.testType = testType;
    }

    public String getTestType()
    {
        return testType;
    }
    public void setTestBy(String testBy)
    {
        this.testBy = testBy;
    }

    public String getTestBy()
    {
        return testBy;
    }
    public void setTestReport(String testReport)
    {
        this.testReport = testReport;
    }

    public String getTestReport()
    {
        return testReport;
    }
    public void setUserSignature(String userSignature)
    {
        this.userSignature = userSignature;
    }

    public String getUserSignature()
    {
        return userSignature;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setQrcode(String qrcode)
    {
        this.qrcode = qrcode;
    }

    public String getQrcode()
    {
        return qrcode;
    }
    public void setPrintNumber(Integer printNumber)
    {
        this.printNumber = printNumber;
    }

    public Integer getPrintNumber()
    {
        return printNumber;
    }
    public void setQrType(String qrType)
    {
        this.qrType = qrType;
    }

    public String getQrType()
    {
        return qrType;
    }
    public void setIsSync(Integer isSync)
    {
        this.isSync = isSync;
    }

    public Integer getIsSync()
    {
        return isSync;
    }
    public void setTraceCode(String traceCode)
    {
        this.traceCode = traceCode;
    }

    public String getTraceCode()
    {
        return traceCode;
    }
    public void setBatchType(String batchType)
    {
        this.batchType = batchType;
    }

    public String getBatchType()
    {
        return batchType;
    }
    public void setSerialCode(String serialCode)
    {
        this.serialCode = serialCode;
    }

    public String getSerialCode()
    {
        return serialCode;
    }
    public void setScanNum(Integer scanNum)
    {
        this.scanNum = scanNum;
    }

    public Integer getScanNum()
    {
        return scanNum;
    }
    public void setSourceType(Integer sourceType)
    {
        this.sourceType = sourceType;
    }

    public Integer getSourceType()
    {
        return sourceType;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("productName", getProductName())
            .append("productWeight", getProductWeight())
            .append("unit", getUnit())
            .append("produceAddress", getProduceAddress())
            .append("testType", getTestType())
            .append("testBy", getTestBy())
            .append("testReport", getTestReport())
            .append("userSignature", getUserSignature())
            .append("code", getCode())
            .append("qrcode", getQrcode())
            .append("printNumber", getPrintNumber())
            .append("qrType", getQrType())
            .append("isSync", getIsSync())
            .append("traceCode", getTraceCode())
            .append("batchType", getBatchType())
            .append("serialCode", getSerialCode())
            .append("scanNum", getScanNum())
            .append("sourceType", getSourceType())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
